<!--
 * @Descripttion: 
 * @version: 1.0
 * @Author: wuhao
 * @Date: 2021-08-23 12:24:31
 * @LastEditors: wuhao
 * @LastEditTime: 2021-08-25 16:01:03
-->
<template>
  <div id="app">
    <!-- 页面布局 -->
    <el-container>
      <el-header>
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!-- 左侧侧边栏菜单 -->
          <Side-Menu></Side-Menu>
        </el-aside>
        <el-main>
          <!-- 右侧主体顶部路由标签 -->
          <Tabs-View style="background:#FFFFFF;color:#409EFF;margin-bottom:5px;"></Tabs-View>
          <router-view :key="activeDate" />
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>

<script>
import { mapState } from 'vuex';
import Header from '@/components/Header.vue'
import SideMenu from '@/components/sideMenu/SideMenu.vue'
import TabsView from '@/components/tabsView/tabsView.vue'
export default {
  name: 'App',
  components: {
    Header,
    SideMenu,
    TabsView
  },
  computed: {
    ...mapState('tabsView', [
      'activeDate'
    ])
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
}
body {
  box-sizing: border-box;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #2c3e50;
  font-family: "楷体";
  font-size: 20px;
}
.el-header {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
  height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  line-height: 200px;
  height: calc(100vh - 60px);
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  height: calc(100vh - 60px);
}

body > .el-container {
  margin-bottom: 40px;
}
.setFlex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart {
  width: 100%;
  height: 500px;
}
</style>
